package com.ha.springcloud;

import com.ha.myrule.HaRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableEurekaClient
@RibbonClient(name="PROVIDER-EMPLOYEE",configuration = HaRule.class)//指定所要访问的服务名称，并且扫描到自定义的Ribbon类
public class EmpConsumer_9001 {

    public static void main(String[] args) {
        SpringApplication.run(EmpConsumer_9001.class,args);
    }
}
